home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / misc-part2 / 11292 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.3 KB  |  39 lines

  1. Newsgroups: comp.sys.amiga.misc
  2. Path: netcom.com!dkaupp
  3. From: dkaupp@netcom.com (Blitter)
  4. Subject: Re: Amigados - checking for a file
  5. Message-ID: <dkauppDpFM1L.JMI@netcom.com>
  6. Organization: >nil:
  7. X-Newsreader: TIN [version 1.2 PL1]
  8. References: <401.6670T240T431@nibelung.demon.co.uk> <dkauppDpFLpD.J4D@netcom.com>
  9. Date: Sat, 6 Apr 1996 08:24:57 GMT
  10. Sender: dkaupp@netcom19.netcom.com
  11.  
  12. Blitter (dkaupp@netcom.com) wrote:
  13. : Barry Shilliday (barry.1@nibelung.demon.co.uk) wrote:
  14. : : What would be the format to check the existence of a file in a script for dos?
  15. : : I would have thought something like this:
  16.  
  17. : : If EXISTS blah:filename
  18. : :   dowhatever
  19. : :   else
  20. : :    dothatinstead
  21. : :    endif
  22. : : endif
  23.  
  24. : : but this doesn't work.
  25.  
  26. :  I'm not sure if you mean the else doesn't work ( I can't check tha 
  27. : manual, in the middle of moving).
  28.  
  29.  Ooops, just notices an extra ENDIF.... That may be the prob. once again 
  30. I dont have a manual handy or the error message from the script.
  31.  
  32.  
  33. -- 
  34. Dave  dkaupp@netcom.com        //                       Kell the Atheist
  35. AMIGA Technologies Homepage   //The Amiga Web Directory kills 12, claims
  36. www.amiga.de               \\//www.cucug.org/amiga.html Darwin made me do it.
  37. Quote from PC friend:'Are you on the Net?' 'Yes.' 'And you have music playing
  38. on your computer!?'.... Doh!!! Ya that and a few other things running..
  39.